HTMLify

index.html
Views: 64 | Author: cody
<!DOCTYPE html>
<html>

<head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <title>Hamburger Menu</title>
    <meta name='viewport' content='width=device-width, initial-scale=1'>
    <link rel='stylesheet' type='text/css' media='screen' href='style.css'>
</head>

<body>
    <nav>
        <div id="menuToggle">
            <!--  Using a hidden checkbox as click reciever, so we can use the :checked selector on it. -->
            <input type="checkbox" />

            <!-- Hamburger Icon -->
            <span></span>
            <span></span>
            <span></span>

            <!-- Menu -->
            <ul id="menu">
                <a href="#">
                    <li>Home</li>
                </a>
                <a href="#">
                    <li>About</li>
                </a>
                <a href="#">
                    <li>FAQ</li>
                </a>
                <a href="#">
                    <li>Contact</li>
                </a>
            </ul>
        </div>
    </nav>
</body>

</html>

Comments